package server.business.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("blood_price")
public class BloodPriceData {
    @TableId(type = IdType.AUTO)
    private Long id;    //编号

    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;   //创建时间

    @TableField(value = "gmt_modified", fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;    //更新时间
    
    @TableField(value = "execution_number")
    private String executionNumber;   //血液价格执行文号
    
    @TableField(value = "execution_date")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date executionDate;     //血液价格执行日期
    
    @TableField(value = "whole_blood")
    private BigDecimal wholeBlood;      //全血
    
    @TableField(value = "concentrate_rbc")
    private BigDecimal concentrateRbc;     //浓缩红细胞出库金额(元/单位)
    
    @TableField(value = "suspension_rbc")
    private BigDecimal suspensionRbc;  //悬浮红细胞出库金额(元/单位)
    
    @TableField(value = "wash_rbc")
    private BigDecimal washRbc;    //洗涤红细胞出库金额(元/单位)
    
    @TableField(value = "nowhite_rbc")
    private BigDecimal nowhiteRbc;     //去白细胞红细胞出库金额(元/单位)
    
    @TableField(value = "freeze_thawed_deglycerinated_rbc")
    private BigDecimal freezeThawedDeglycerinatedRbc;    //冰冻解冻去甘油红细胞出库金额(元/单位)
    
    @TableField(value = "manual_separation_platelet")
    private BigDecimal manualSeparationPlatelet;  //手工分离血小板出库金额(元/单位)
    
    @TableField(value = "fresh_frozenplasma")
    private BigDecimal freshFrozenplasma;  //新鲜冰冻血浆出库金额(元/单位)
    
    @TableField(value = "normal_frozenplasma")
    private BigDecimal normalFrozenplasma;  //普通冰冻血浆出库金额(元/单位)
    
    @TableField(value = "machinetake_plasma")
    private BigDecimal machinetakePlasma;  //机采血浆出库金额(元/单位)
    
    @TableField(value = "cryoprecipitate_coagulation_factor")
    private BigDecimal cryoprecipitateCoagulationFactor;  //冷沉淀凝血因子出库金额(元/单位)
    
    @TableField(value = "machinetake_platelets")
    private BigDecimal machinetakePlatelets;  //机采血小板出库金额(元/单位)
    
    @TableField(value = "machinetake_granulocytes")
    private BigDecimal machinetakeGranulocytes;  //机采粒细胞出库金额(元/单位)
    
    @TableField(value = "machinetake_peripheralblood")
    private BigDecimal machinetakePeripheralblood;  //机采外周血干细胞出库金额(元/单位)
    
    @TableField(value = "plasma_exchange")
    private BigDecimal plasmaExchange;  //血浆置换出库金额(元/单位)
    
    @TableField(value = "irradiation_blood")
    private BigDecimal irradiationBlood;  //血液辐照出库金额(元/单位)
    
    @TableField(value = "virus_inactivation_blood")
    private BigDecimal virusInactivationBlood;  //病毒灭活血液出库金额(元/单位)
    
    @TableField(value = "therapeutic_apheresisblood")
    private BigDecimal therapeuticApheresisblood;  //治疗性单采血液出库金额(元/单位)
}
